package com.yehun.enums;

import com.yehun.utils.Constant;

public enum StatusEnum implements BaseEnum<Integer> {

    ALL(Constant.Default.ValueInt, "全部"),
    NORMAL(1, "正常"),
    INVALID(0, "无效");

    private Integer value;
    private String text;

    StatusEnum(Integer value, String text) {
        this.value = value;
        this.text = text;
    }

    @Override
    public Integer getValue() {
        return value;
    }

    @Override
    public String getText() {
        return text;
    }

    @Override
    public String toString() {
        return value.toString();
    }
}
